﻿using System;
using System.Collections.Generic;
using System.Text;
using Castle.ActiveRecord;
using Castle.Components.Validator;
using MiragePWF.NH.Validation;
using Wolfut.MirageEE.Kernal.Common;
using Wolfut.MirageEE.Domain.CommonUtilities;

namespace Wolfut.MirageEE.Domain.Sales
{
     /// <summary>
    /// 收款单明细信息
    /// </summary>
    [ActiveRecord("COLLECTING_BILL_DETAILS")]
    public class CollectingBillDetail : PersistentObjectWithGuid
    {
        #region 收款单ID
        private string collectingBillID = string.Empty;
        /// <summary>
        /// 收款单ID
        /// </summary>
        [Property("COLLECTING_BILL_ID")]
        [ValidateLength(0, 40, "收款单ID超长")]
        public virtual string CollectingBillID
        {
            get { return collectingBillID; }
            set { collectingBillID = value; }
        }
        #endregion

        #region 收款账户
        private string paymentAccount = string.Empty;
        /// <summary>
        /// 收款账户
        /// </summary>
        [Property("PAYMENT_ACCOUNT")]
        [ValidateLength(0, 100, "收款账户超长！")]
        public virtual string PaymentAccount
        {
            get { return paymentAccount; }
            set { paymentAccount = value; }
        }
        #endregion

        #region 收款金额
        /// <summary>
        /// 收款金额
        /// </summary>
        [Property("COLLECTING_BILL_SUM")]
        public virtual decimal CollectingBillSum
        {
            get { return collectingBillSum; }
            set { collectingBillSum = value; }
        }
        private decimal collectingBillSum;
        #endregion        

        #region 支付方式
        private string paymentMode = string.Empty;
        /// <summary>
        /// 支付方式
        /// </summary>
        [Property("PAYMENT_MODE")]
        [ValidateLength(0, 40, "支付方式超长！")]
        public virtual  string PaymentMode
        {
            get { return paymentMode; }
            set { paymentMode = value; }
        }
        #endregion

        #region 参考编号
        private string referenceCode = string.Empty;
        /// <summary>
        /// 参考编号
        /// </summary>
        [Property("REFERENCE_CODE")]
        [ValidateLength(0, 100, "参考编号超长！")]
        public virtual  string ReferenceCode
        {
            get { return referenceCode; }
            set { referenceCode = value; }
        }
        #endregion

        #region 逻辑删除
        private Boolean isDeleted;
        [Property("IS_DELETED")]
        public virtual Boolean IsDeleted
        {
            get
            {
                return isDeleted;
            }
            set
            {
                isDeleted = value;
            }
        }
        #endregion
    }
}
